# Apache configuration file for mirrormanager2

Alias /mirrormanager/static /usr/lib/python2.7/site-packages/mirrormanager2/static/fedora/
Alias /mirrormanager/crawler /var/log/mirrormanager/crawler
Alias /mirrormanager/data /var/www/mirrormanager-statistics/data
Alias /mirrormanager/map /var/www/mirrormanager-statistics/map

WSGIDaemonProcess mirrormanager user=apache maximum-requests=100 display-name=mirrormanager processes=2 threads=4
WSGISocketPrefix run/wsgi
WSGIRestrictStdout On
WSGIRestrictSignal Off
WSGIPythonOptimize 1

WSGIScriptAlias /mirrormanager /var/www/mirrormanager2.wsgi

<Location />
    WSGIProcessGroup mirrormanager
    <IfModule mod_authz_core.c>
        # Apache 2.4
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
         # Apache 2.2
        Order deny,allow
        Allow from all
    </IfModule>
</Location>

<Location /mirrormanager/xmlrpc>
{% if mm2_checkin %}
	Require all granted
{% else %}
	Require all denied
{% endif %}
</Location>
